package cn.iocoder.yudao.module.system.controller.admin.auth.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;

@Schema(description = "管理后台 - 发送手机验证码 Request VO")
@Data
public class AuthSendMobileCodeReqVO {

    @Schema(description = "手机号", requiredMode = Schema.RequiredMode.REQUIRED, example = "15601691300")
    @NotEmpty(message = "手机号不能为空")
    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "手机号格式不正确")
    private String mobile;

    @Schema(description = "图片验证码", requiredMode = Schema.RequiredMode.REQUIRED, example = "ABCD")
    @NotEmpty(message = "图片验证码不能为空")
    private String captchaCode;

    @Schema(description = "图片验证码唯一标识", requiredMode = Schema.RequiredMode.REQUIRED, example = "9e2b4f6c-1a3b-4f6e-9c8e-3a7b4f6c9d0e")
    @NotEmpty(message = "图片验证码唯一标识不能为空")
    private String captchaUuid;

}